﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Web;

namespace MvcFrameStruct.Areas.User.Models
{
    public class User
    {
        public int UserId { get; set; }

        [Required]
        [Display(Name = "姓名")]
        [StringLength(10)]
        [DataType(DataType.Text)]
        public string Name { get; set; }

        [Required]
        [DataType(DataType.DateTime)]
        [Display(Name = "出生日期")]
        public DateTime BirthDate { get; set; }

        [Required]
        [Display(Name = "性别")]
        public bool UserSex { get; set; }
    }
}